package com.inspur.gs.sbssdl.sbssgl.sbtz.sbtz.back.bizactions;
import com.inspur.edp.bef.api.lcp.IStandardLcp;
import com.inspur.edp.bef.engine.entity.AssociationInfo;
import com.inspur.edp.cef.api.message.*;
import com.inspur.edp.bef.api.action.determination.*;
import com.inspur.edp.bef.api.action.validation.*;
import com.inspur.edp.cef.entity.changeset.*;
import com.inspur.edp.bef.api.be.*;
import com.inspur.edp.bef.api.action.VoidActionResult;
import com.inspur.edp.bef.spi.action.AbstractManagerAction;
import com.inspur.edp.cef.entity.entity.IEntityData;
import com.inspur.gs.sbssdl.sbssgl.sbtz.sbtz.back.sbsssbtz.common.SbssSbtzLogUtils;

import java.util.ArrayList;

/**
 * 记录修改日志
 *
 */

public class SbssSbtzpushChangeLogMgrAction extends AbstractManagerAction<VoidActionResult> {
	private String DataName;
	private String DataComm;
	private String oldValue;
	private String updValue;
	private String valueFrom;
	private String changeUser;
	private String beId;
	private String SbtzId = "efd56b39-0e8d-4441-9fa1-2b019b6fd862";

	public SbssSbtzpushChangeLogMgrAction(IBEManagerContext managerContext,
			String DataName, String DataComm, String oldValue, String updValue,
			String valueFrom, String changeUser, String beId) {
		super(managerContext);
		this.DataName = DataName;
		this.DataComm = DataComm;
		this.oldValue = oldValue;
		this.updValue = updValue;
		this.valueFrom = valueFrom;
		this.changeUser = changeUser;
		this.beId = beId;
	}
	@Override
	public  void execute() {

		SbssSbtzLogUtils.changelog(beId,DataName,DataComm,oldValue,updValue,valueFrom,changeUser);

	}
	private IBusinessEntity getEntity(String dataId) {
		return (IBusinessEntity)super.getBEManagerContext().getEntity(dataId);
	}	private IBEService getMgr() {
		return (IBEService)super.getBEManagerContext().getBEManager();
	}
}